import { createRouter, createWebHistory } from "vue-router"
import Home from "@/views/home/index.vue"
import Login from "@/views/login/index.vue"
import ChangePassword from "@/views/My/changePassword/index.vue"
import RegisterAccount from "@/views/My/registerAccount/index.vue"
import VerificationByPhone from "@/views/My/verificationByPhone/index.vue"
import Detail from "@/views/LineLossAnalysis/detail/index.vue"
// import ScanCodePage from "@/views/scanCodePage/index.vue"
import Step1 from "@/views/createExperiment/step1/index.vue"
import Step2 from "@/views/createExperiment/step2/index.vue"
import Step3 from "@/views/createExperiment/step3/index.vue"

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "home",
      component: Home
    },
    {
      path: "/login",
      name: "login",
      component: Login
    },
    {
      path: "/my/changePassword",
      name: "changePassword",
      component: ChangePassword
    },
    {
      path: "/my/registerAccount",
      name: "registerAccount",
      component: RegisterAccount
    },
    {
      path: "/my/verificationByPhone",
      name: "verificationByPhone",
      component: VerificationByPhone
    },
    {
      path: "/lineLossAnalysis/detail",
      name: "detail",
      component: Detail
    },
    // {
    //   path: "/scanCodePage",
    //   name: "scanCodePage",
    //   component: ScanCodePage
    // },
    {
      path: "/createExperiment/step1",
      name: "step1",
      component: () => import("@/views/CreateExperiment/step1/index.vue")
    },
    {
      path: "/createExperiment/step2",
      name: "step2",
      component: () => import("@/views/CreateExperiment/step2/index.vue")
    },
    {
      path: "/createExperiment/step3",
      name: "step3",
      component: () => import("@/views/CreateExperiment/step3/index.vue")
    },
    {
      path: "/createExperiment/connectList",
      name: "connectList",
      component: () => import("@/views/CreateExperiment/connectList/index.vue")
    }
  ]
})

export default router
